/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package hebergement;

/**
 *
 * @author tommy
 */
public class Hebergement {
    private int idHebergement;
    private String hotel;
    private String serviceOffer;
    private String vip;

    public Hebergement(String lieu, String serviceOffer, String vip) {
        this.hotel = lieu;
        this.serviceOffer = serviceOffer;
        this.vip = vip;
    }

    @Override
    public String toString() {
        return "Hebergement{" + "lieu=" + hotel + ",serviceOffer=" + serviceOffer + ",vip=" + vip + '}';
    }

    public Object getGetter(int col) {
        if (col == 0) {
            return this.getIdHebergement();
        }
        if (col == 1) {
            return this.getHotel();
        }
        if (col == 2) {
            return this.getServiceOffer();
        }
        if (col == 3) {
            return this.getVip();
        }
        return null;
    }

    public void setSetter(Object valu, int col) {

        if (valu instanceof Hebergement) {
            Hebergement value = (Hebergement) valu;
            if (col == 0) {
                this.setIdHebergement(value.getIdHebergement());
            }
            if (col == 1) {
                this.setHotel(value.getHotel());
            }
            if (col == 2) {
                this.setServiceOffer(value.getServiceOffer());
            }
            if (col == 3) {
                this.setVip(value.getVip());
            }

        }
    }

    
    public String getServiceOffer() {
        return serviceOffer;
    }

    public String getVip() {
        return vip;
    }

    

    public void setServiceOffer(String serviceOffer) {
        this.serviceOffer = serviceOffer;
    }

    public void setVip(String vip) {
        this.vip = vip;
    }

    public String getHotel() {
        return hotel;
    }

    public int getIdHebergement() {
        return idHebergement;
    }

    public void setHotel(String hotel) {
        this.hotel = hotel;
    }

    public void setIdHebergement(int idHebergement) {
        this.idHebergement = idHebergement;
    }


}
